<template>
    <div class="payment flex">
        <Asiden></Asiden>
        <div class="w100p ml-10 bs">
            <Nav></Nav>
            <!-- 选中后的菜单 -->
            <div class="pl-10 mb-10">
                <el-button class="chooseBtn" autofocus type="primary" size="small" @click="change"
                    plain>PRODUCT</el-button>
                <el-button class="chooseBtn" type="primary" size="small" plain>MA2022</el-button>
                <el-button class="chooseBtn" type="primary" size="small" plain>SETTING</el-button>
            </div>
            <div class="main flex">
                <div class="paymentmain bs">
                    <el-tabs v-model="activeName" type="card" class="demo-tabs">
                        <el-tab-pane label="Summary" name="first">
                            <div class="summary flex">
                                <div class="balance mr-10 color">
                                    <div>
                                        <span>Balance &nbsp;</span>
                                        <p class="f20 fwb">$73.748.42USD* &nbsp;</p>
                                        <span>Available</span>
                                    </div>
                                    <div class="ml-20 mt-5">
                                        <p class="money flex aic jc-sb"><span>USD</span><span>$11721.94</span></p>
                                        <p class="money flex aic jc-sb"><span>EUR</span><span>€11721.94</span></p>
                                    </div>
                                    <div class="color mt-5">
                                        *This is an eetimate based on the most recent conversion rate
                                    </div>
                                    <el-select v-model="value" class="m-2 mt-5" placeholder="BOA BANK">
                                        <el-option v-for="item in bankList" :key="item.value" :label="item.label"
                                            :value="item.value" />
                                    </el-select>
                                    <div class="bankinfo mt-10 flex aic jc-c">
                                        银行相关信息
                                    </div>
                                    <div class="rel w100p mt-20">
                                        <el-button class="addone">Add one Record</el-button>
                                    </div>
                                </div>
                                <div class="activity">
                                    <div class="flex jc-sb">
                                        <div class="title flex aic">
                                            <p>Activity</p>
                                            <el-select v-model="value" class="m-2" placeholder="Select">
                                                <el-option v-for="item in bankList" :key="item.value"
                                                    :label="item.label" :value="item.value" />
                                            </el-select>
                                            <el-select v-model="value" class="m-2" style="width: 100px;"
                                                placeholder="Select">
                                                <el-option v-for="item in bankList" :key="item.value"
                                                    :label="item.label" :value="item.value" />
                                            </el-select>
                                            <el-select v-model="value" class="m-2" placeholder="Select">
                                                <el-option v-for="item in bankList" :key="item.value"
                                                    :label="item.label" :value="item.value" />
                                            </el-select>
                                            <p>Download</p>
                                        </div>
                                        <p>Grid/Table</p>
                                    </div>
                                    <div>
                                        <Paymentlist :tableData="tableData" :state="state"></Paymentlist>
                                    </div>

                                </div>
                            </div>
                        </el-tab-pane>
                        <el-tab-pane label="Reports" name="second">
                            <div class="reports">
                                Reports
                            </div>
                        </el-tab-pane>
                    </el-tabs>
                </div>
               
            </div>
        </div>

    </div>
</template>

<script setup>
import Asiden from "../components/Aside.vue"
import Nav from "../components/Nav.vue"
import Paymentlist from "./components/Paymentlist.vue"

import { ref } from "vue"
const state = ref(false)

const change = () => {
    state.value = !state.value
}

const activeName = ref('first')



const value = ref('')
const bankList = [
    {
        value: 'Option1',
        label: 'Option1',
    }
]
const tableData = [
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    },
    {
        date: "Dec 25,2022",
        name: "payment to Kernal HSBC Process MA2212251028",
        gross: "$3545.23 USD",
        fee: "$35.34 USD",
        net: "$3499.22 USD",
        actions: "..."
    }
]
</script>

<style lang="less" scoped>
@import url(./payment.less);
</style>